package com.ruoyi.system.service.impl;

import com.ruoyi.system.mapper.UserProfileMapper;
import com.ruoyi.system.service.IUserProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class UserProfileServiceImpl implements IUserProfileService {

    @Autowired
    private UserProfileMapper userProfileMapper;

    @Override
    public List<Map<String, Object>> getTagPreferences() {
        return userProfileMapper.getTagPreferences();
    }

    @Override
    public List<Map<String, Object>> getActorPreferences() {
        return userProfileMapper.getActorPreferences();
    }

    @Override
    public List<Map<String, Object>> getPlatformPreferences() {
        return userProfileMapper.getPlatformPreferences();
    }

    @Override
    public List<Map<String, Object>> getRFMAnalysis() {
        return userProfileMapper.getRFMAnalysis();
    }

    @Override
    public List<Map<String, Object>> getBehaviorAnalysis() {
        return userProfileMapper.getBehaviorAnalysis();
    }

    @Override
    public List<Map<String, Object>> getPreferenceDistribution() {
        return userProfileMapper.getPreferenceDistribution();
    }

    @Override
    public Map<String, Object> getStats() {
        return userProfileMapper.getStats();
    }

    @Override
    public List<Map<String, Object>> getGenderDistribution() {
        return userProfileMapper.getGenderDistribution();
    }

    @Override
    public List<Map<String, Object>> getAgeDistribution() {
        return userProfileMapper.getAgeDistribution();
    }
}